const m=require('../controllers/merchant.server.controller');


function fn(app){

    app.route("/merchant")
        .get(m.merchantAction)
        .post(m.merchantRegist)
        .put(m.updateMerchantMsg);

    app.route("/merchant/:_id")
        .get(m.loadMerchantMsg);

    app.route("/uploads")
        .post(m.fileUpload)

}

module.exports=fn;